#!/usr/bin/env python3

###############################################################################
# Name:         weak
# Purpose:      An adapter to load the Qt-Designer *.ui file, build a program by MVC.
# Author:       Bright Li
# Modified by:
# Created:      2018-02-23
# Version:      [0.0.2]
# RCS-ID:       $$
# Copyright:    (c) Bright Li
# Licence:      GPLv2
###############################################################################

import argparse
from PyQt5.QtWidgets import QApplication

from frw.glob import GlobMnger
from frw.entry import qt5_program_run

from gui.wx.mainwnd import MainWndVac

def getopt():
    parser = argparse.ArgumentParser("weak", description="Example GUI with PyQt5 【v0.2】2019-02-23")
    parser.add_argument("-l", "--loglevel", action="store", type=int, help="set the logging level")
    return parser.parse_args()

if __name__ == '__main__':
    args = getopt()
    if args.loglevel:
        GlobMnger.override("LOGGER_LEVEL", args.loglevel)

    qt5_program_run(MainWndVac)